package com.whz.governance.http.client;

import javax.servlet.http.HttpServletRequest;

/**
 * 自定义sentinel断言
 *
 * @author whz
 */
@FunctionalInterface
public interface CommonOriginPredicate {

    /**
     * 指定web http request请求源(origin),如 ip/user/appName/header
     *
     * @param request 请求
     * @return origin Name
     */
    String apply(HttpServletRequest request);
}